var targetProtocol = "https:";
console.log(window.location.protocol + "0000000000");
if (window.location.protocol != targetProtocol)
  window.location.href =
    targetProtocol +
    window.location.href.substring(window.location.protocol.length);
